package com.offcn.product.controller;

import com.offcn.product.client.ProductFeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Controller
public class ProductController {

    @Resource
    private ProductFeignClient productFeignClient;
    @GetMapping("hello")
    @ResponseBody
    public String hello(){

        return productFeignClient.hello();
    }
}
